# -*- coding: utf-8 -*-
# @Author: long
# @Date:   2018-06-02 17:42:30
# @Last Modified by:   long
# @Last Modified time: 2018-06-03 16:00:06

import filelist
import os

class LinuxFSPathConnect(filelist.PathConnect):
	def list(self, uri):
		for root, dirs, files in os.walk(uri, topdown=True):
			return dirs, files
		return (),()

	def abs_uri(self, uri):
		return os.path.abspath(uri)
		
	def parent_uri(self, uri):
		return os.path.dirname(uri)